package com.hotel.mapper;

import com.hotel.pojo.Cart;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface CartMapper {
    @Select("select count(1) from cart")
    Long getTotal();

    List<Cart> findCartListByPage(@Param("start") int start,
                                  @Param("size") int size,
                                  @Param("query") String query);
}
